package com.res.share.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.res.share.model.ResSend;
import com.res.share.mapper.ResSendMapper;
import com.res.share.model.dto.MessageModel;
import com.res.share.service.IResSendService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 发送者 服务实现类
 * </p>
 *
 * @author astupidcoder
 * @since 2021-10-28
 */
@Service
public class ResSendServiceImpl extends ServiceImpl<ResSendMapper, ResSend> implements IResSendService {

    @Override
    public IPage<MessageModel> findSendBoxList(Page<MessageModel> page, Integer userId) {
        return baseMapper.findSendBoxList(page,userId);
    }

    @Override
    public void delsendMessageList(List<String> collect, Integer userId) {
        baseMapper.delsendMessageList(collect,userId);
    }
}
